www.gusucode.com > Neutrosophic logic toolbox Package_ Neutrosophic Matrices > Neutrosophic logic toolbox Package_ Neutrosophic Matrices/@sterm/plus.m
function p = plus(v,w) % function p = plus(v,w) % sum of two sterms % %In the Name of ALLAH % neutrosphic logic toolbox for computing single valued neutrosophic Matrice % Copyright (C) 2015-2019 Broumi said %for for details see the refrence: %Said Broumi, Le Hoang Son, Assia Bakali, Mohamed Talea, Florentin Smarandache, %Ganeshsree Selvachandran, Computing Operational Matrices in Neutrosophic Environments: %A Matlab Toolbox,Neutrosophic Sets and Systems, 18,2017,pp.58-66. % neutrosphic logic toolbox for computing single valued neutrosophic Matrice comes % This is free software, and you are welcome to redistribut;see license.txt for details. if isa(v,'sterm')&isa(w,'sterm') p=stermplus(v,w); else if ~isa(v,'sterm') v=sterm(v); end if ~isa(w,'sterm') w=sterm(w); end if isa(v,'sterm')&isa(w,'sterm') p=stermplus(v,w); else error(' wrong type in sterm\plus ') end end function p=stermplus(v,w); %vs=sterm(v); vsL=length(v); %ws=sterm(w); wsL=length(w); p(1:vsL)=v; p(vsL+1:vsL+wsL)=w; p=sterm(p);